<?php

global $prefix;

$video = get_post_meta($post->ID, $prefix.'_video', true);
$postid = $post->ID;

?>	

<?php if ( !is_singular() ) { ?>

                	<div class="posttype">
            <div class="video-container">
                <?php echo $video; ?>
            </div>
        </div>
                    <div class="text">
                    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <p class="meta"><?php the_time('F j, Y') ?></p>   

                       <p><?php cl_excerpt('cl_excerptlength_post', 'cl_excerptmore'); ?></p>
                    </div>
                                   <div class="categoriess"><?php the_category(' '); ?></div>
	<div class="postauthors"><?php the_author_posts_link(); ?></div>
    <div class="postcomments"><?php comments_popup_link(__('No Comments', 'themeText'), __('1 Comment', 'themeText'), __( '% Comments', 'themeText') ); ?></div> 


<?php } else { ?>
    
        <div class="posttype">
            <div class="video-container">
                <?php echo $video; ?>
            </div>
        </div>
      <div class="text">
                    <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <p class="meta"><?php the_time('F j, Y') ?></p>   

                       <p><?php the_content(); ?></p>
                    </div>
                                   <div class="categoriess"><?php the_category(' '); ?></div>
	<div class="postauthors"><?php the_author_posts_link(); ?></div>
    <div class="postcomments"><?php comments_popup_link(__('No Comments', 'themeText'), __('1 Comment', 'themeText'), __( '% Comments', 'themeText') ); ?></div> 
                
<?php } ?>